<?php
//---------------------------------------------------------------------------------------------------
    require_once('../config.inc.php');

    require_once($config['app_dir'] . '/classes/StockMailers.class.php');

//-----------------------------------------------------------------------------------------------
	if( 'cli'==php_sapi_name() ) { //console access
        $userid = intval($argv[1]);
    } else $userid=108;


	try {
	   	$StockMailer = new objStockUserMailer($userid);
		$StockMailer->loging=false;
	   	$StockMailer->Send();
	} catch(exception $e) {
		die('Error: '.$e->getMessage());
	}

echo $userid.", ";
//---------------------------------------------------------------------------------------------------
?>
